package com.itheima.service.impl;

import com.itheima.mapper.CartMapper;
import com.itheima.queryParams.CartInfo;
import com.itheima.service.CartService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class CartServiceImpl implements CartService {
    private final CartMapper cartMapper;

    @Override
    public List<CartInfo> getCarts() {
        List<CartInfo> list = cartMapper.getList();
        return list;
    }
}
